package xiaoqi.qingyue.api.basic.photo.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 92110
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_photo")
public class Photo {
    @TableId("photo_id")
    private String id;
    @TableField("photo_name")
    private String name;
    @TableField("photo_path")
    private String path;
    @TableField("photo_url")
    private String url;
    @TableField("created_time")
    private String createTime;
    @TableField("deleted_time")
    private String deleteTime;
    @TableField("status")
    private Character status;

    public Photo(String id, String fileName, String path, String url) {
        this.id = id;
        this.name = fileName;
        this.path = path;
        this.url = url;
    }

    public Photo(String id, Character status) {
        this.id = id;
        this.status = status;
    }
}
